Cleaning up game mechanics and resource usage.