added logic for pawn to queen