A simple tic tac toe game in JavaScript