A simple press break would have eliminated the need for the ref to make that call to win. They were up and couldn't get the ball past half court. Advance the ball, get fouled, hit free throws, and win the game. They gave it away, the ref didn't take it.