Problem making characters hug

For the man you would write
@CHARACTER moves to layer 2
And for the woman
@CHARACTER moves to layer 1
Too see the rest of the layers I suggest you take a look at
It was helpful for me