Game generation in a separate process works.

Some cleanup still needed, see TODOs.