Here is a great idea of what the real code looks like, sorry if it's confusing ... I'm a noobie
let dict = { pos: [1,1],[2,2] ,pos2: [3,3],[4,4]};
let pawn = class {
constructor {
this.int = 0; // index for pos1
this.anotherint = 0; // index for pos2
this.position = [0,0]; //...