Fixed too few ticks happening, moved out key input code to its own file and added a feature for looking at the map generation step by step (enabled in this current commit, activate by selecting the regenerate map button in the menu).