Working

The issue was that isOn was never switched to false once it was switched
to true, causing way more ON states than there should have been. Program
now outputs the correct values