recoded engine.entities.cloneEntity() to use engine.entities.addEntity()