Tic Tac Toe game in Java