fix various bugs for pawn direction