added toggleBulbs to nextFrame method