Your CastToPawnClass is not being run since it’s “entry pin” is not connected to anything.
CastToPawnClass
Cheers,
–mieszko