Implemented a polygon switcher