Tic-Tac-Toe game on Java