implemented rendering with entity system