Programmed a Tic-Tac-Toe game in JavaFX