Add potential and puzzle scripts, upgrade gravity