TicTacToe game with simple UI, Java