Am I able to create a button that allows the game to end?
To end a space you can use the end Space - CoBlock. You can find it in the Control -> Other CoBlocks category. It looks like this:
To make a button, you can place this block in a when item clicked - event block
Below is an example you can take a look at. Feel free to remix it to see how the button was made!