Collision Detection extension for cs207