adding entities.
Spawning entities, fixed memory leaking.