Moved touching and unlocking to cloud code