TicTacToe game on Java in console