Added ObjectManager. Segfaults on handlemovement
Fixed segfault