Fully functional tic-tac-toe game for java