fixed some errors with copypasted code and level generation