TicTacToe game written in java