Tic Tac Toe Java Without Gui