changed Pawn logic. it was wrong in some cases.