Simple implementation of tictactoe on Java.