In the example "The goalkeeper was a rock and refused to allow the other team to score" metaphor as a type of figurative language is being used . The metaphor is a figure of speech that directly refers to one thing by mentioning another for rhetorical effect. In this case it refers to the goal, by mentioning rock.