Main changes: a simple level generator is now working ok.

It doesn't generate very exciting levels yet, but it looks like a good
start.