Slight reposition of some statements

Changed the position of leftOn/rightOn = true/false statments