Removed some scrap code, implemented reference counting
I removed some earlier scrap code, and implemented
reference counting for the game objects.