Maze task, general cleanup, and other optimizations to the sensors and polygons