Added createGame logic, fixed a bug in ComponentEntityManager.