Refactored code once again.Turned Input object into singleton, got rid of all the polluting '_this' calls in the code, and refactored the calculateHeightmap method, which is now called applyHeightmap. applyHeightmap still needs further refactoring and the Map object needs
some more functionality