Implementation of ultimate tic tac toe