tic tac toe game and solutions to basic problems