An implementation of Tic Tac Toe in Java