Follow the on-screen directions
Basically took the game below and made it work with any number and have less code. https://scratch.mit.edu/projects/238246005/