tic tac toe game and mastermind with AI