converted game architecture to entity system