made collisions based on center of entity, made render function for entityManager for debugging, fixed ghosts not changing directions when switching modes