Added a method to toggle the pins individually ande debugged it