refactoring to use P2 physics to better support map collisions