A simple 2d physics engine in objective c