Added centipede states; collision manager refactoring