added MainMenu, improved detection for floor, improved player movement