A basic game of tic tac toe built in javascript