Update entityManager.cpp