The role of the basketball referee is exactly this – to ensure the game is played safely and fairly
The referee enforces the rules of the game and in a game will make hundreds of decisions – determining when a violation or foul occurs and then stopping the game to issue the correct penalty