Cleaned main, loadLevel, goals and portalCollsion.