Fixed player input system and improved terrain rendering