switched to int var for row of selected switch
got rid of unusable check in switchFlipped
changed switchFlipped to IBAction