src/main/java/tsz/game/controller/MainMenuController.java
/**
	 * Start the game when the name is valid.
	 */
Start the game when the name is valid.
Start the game when the name is valid .
@FXML
	public void startGame() {
		if(this.main.getPlayer().isPlayerNameValid(playerName.getText())) {
			this.setPlayerName();
			this.main.showGame();
		} else {
			invalid.setTextFill(Color.DARKRED);
		}
	}
@ FXML public void startGame ( ) { if ( this . main . getPlayer ( ) . isPlayerNameValid ( playerName . getText ( ) ) ) { this . setPlayerName ( ) ; this . main . showGame ( ) ; } else { invalid . setTextFill ( Color . DARKRED ) ; } }
Start the game when the name is valid.
Start the game when the name is valid .