A tic tac toe game written in pure javascript