Score check

adds return type checking for the song function