– add the object id to objects
– also remove the texture path mapping when removing a texture
– increase the funds by half the original price when removing an object (“sell it”)
The first two were some background work to make things a) more manageable and b) try to not leak memory.
As for the bit of game play, check out the video: