implementation of console tictactoe on Java