If all the coins don't load on the screen, try clicking the flag again. Don't touch the green coins or the ghosts, or you will lose. The ghosts randomly turn at an intersection, and they drastically slow down at them, so don't be surprised if they quickly speed up after going through an intersection. It's only possible to win if you can get a score of 127 before losing or before all the coins turn green.
School Project Map from this: https://scratch.mit.edu/projects/97137611/ This project was done with help from @SignatureProject