refactor static entity creation to fix bugs

- solved bug when updateEntity will not add to staticSystem the dependent entity
- solved bug when entities are not added to staticSystem's entities
- refactor static entity creation