/** * Overrides World<T> newGame(char). Shoots a MoveInfo with null piece and null location to the * CheckerGame if the game is still running. If the game has ended, directly changes the * CheckerGame's game status for CheckerRunner to detect. * * @param a the new game status */ public void newGame(char a) { newGame = a; playerPiece = null; setPlayerLocation(null); if (!lock.hasQueuedThreads()) // if the game has ended { game.newGame(a); } super.newGame(); // World's newGame() disposes the frame }