Implemented the Entity Manager and basic collision detection