Teaching myself JavaScript by building a game of Tic Tac Toe