He had no idea how she'd managed to come out ahead of him, but he shouldn't have been surprised that she didn't play by the rules.
That didn't mean he had to lose, though. He pushed himself, reached within and found one last burst of energy.
... and then he made the mistake of looking at her, and he had no idea how but he stumbled, avoided going down but lost a few seconds and she reached the fountain first.