Added destroyResources() method.
This method handles the destruction of game objects. It is used to release game-related values from memory.