an implementation of the tic tac toe game