es6 entity system game engine