Added copy functions for entities and sprites