corrected pawn move checking