Game Logic for tic tac toe trivia game to run on the server