Added a collision framework for polygons