Performance bottleneck in gotoNextLevel fixed. Clearing large hashmaps is expensive.