This game was made with the help of the following tutorial Pure and Simple - Tic Tac Toe with Javascript