added some logic for pawn