Adds methods for finding all valid moves that a player has at the moment. If a player resigns, the game checks to see if were any valid moves, and if so, an exception is thrown.