Rear brake handle switch

There’s alot of play in my brake handle. So I’ve been wrapping the inner part with Teflon tape to firm it up a bit. Works great. The last time I did I noticed a switch popped out so I put it back in. Now my quad will not start now unless in neutral or park. Which the neutral light only comes on when it’s cold. Park I have to shake and shimmy to get the light on and it’s even harder if I’ve got it loaded on my truck. Guess because it’s not firm on the ground. Anyways if I pop the switch back out it starts in every gear with rear brake pressure. What is up with the switch? What’s it used for other than maybe a safety thing