Encapsulated all entities into a static class, removed redundant code, added option to clear the spawned objects and added a object counter.