Possessing and Unpossessing different pawn


Please have a look. That properties are all same and I have print the possessed pawn’s name as well. I get the name of the possessed pawn but doesn’t move.