Improved level generator

ChunkFactory.generateNextChunk now creates a level that is stable with
no overlapping platforms. It supports different chunklength settings
(in variables.P).
Merge branch 'Level-generator'