Move Polygon class into world.* for further refactoring.