made changes to how the game keeps track of objects