Why are you checking for all pawns, if the method is movePawn (singular) ?