ObjectManager handle pointers

This prevents the game from crashing each time you'd restart the game.
And removed alot of memory leaks.