Remade the entire level generating code

Remade the level generating code. Good as it is for now. Will have to
work more on it later though, to fixe the chaotic web of corridors...