refactoring more code to separate renderer from entities and define building blocks of ecs