I think your logic on how switches work is flawed.
See this post for explanation on how to do it correctly