Issues creating a score counter

check if the cast succeeds by putting a print string on the cast failed node