Lever puzzle script