I trying to make a chess move. It seems really simple but whenever I assign a value inside the for loop, for example giving a value to the currentPos it is always null and n