MainMenu, primitive AI and some ship refactoring