position detection

Oh yes, i didn't think about the fact that only one switch wil ever be on at any given time.