Camera controls fixed again

I believe this commit should get the camera controls working the way they should for the newest version of WebHexPlanet. I've also extracted most of the camera logic into its own function outside of the render() method to keep things cleaner.