A simple tic-tac-toe game, written in javascript