Change gravity from a global vector in PhysicEngine to a local vector in Mass
Refactor Ball and Rectangle into derived class of core's Entity