Refactored pawn a little.
Refactored pawn to reduce code duplication.