A simple javascript game: Tic Tac Toe