Improved (But still not working) generation

Better framework, however it doesn't generate playable levels yet.
Still working out some numbers.