Refactoring the state of the game into a new class, plus a new class for castling information. Adding Rank::getStartingRank().