Implementation of the tic tac toe game