Tic Tac Toe in Java