//Makes the Pawn into a queen if it has reached the end of the board public override void afterMoveAction(GameBoard board) { Location forwardLoc = location.Shift(0, getYForward()); if (!board.locationOnBoard(forwardLoc)) { //Perform the queen me Queen upgrade = new Queen(this); board.removePiece(this); board.addPiece(upgrade); } }