After saving Peach and completing the Main Story, you can find and participate in Koopa Freerunning Races in all Kingdoms outside of Cloud Kingdom, Ruined Kingdom, The Dark Side and The Darker Side. In these races, you will face off against Roving Racers to reach a certain point on the map first. If you succeed in doing so, you will be rewarded with a Power Moon. By unlocking the Moon Rock Power Moons in these given kingdoms, you will also unlock the Master Cup for these races. The goal and reward are the same in Master Cup Races as in Regular Cup Races; however, you will be pitted against a much faster Gold Koopa the second time around.