Changed _allEntities to a vector

Changed _allEntities to a vector to solve issues with changing types