Adding a light mode to goggles and simplifying gesture code