add optional time limit, and some comments

I like this game but yesterday played a game that lasted almost half an hour, which was terrible. I implemented an optional time limit; if you set *timelimit* to a number, then the game ends after that many seconds, with an "out of time" banner.