new tested 'getPossibleMoves' function