Plays a game of tic tac toe