This was the code used for the buttons, it either loaded the correct scene or quit the game.
This was the final collision that checked which player won the game and would then load in the correct endscreen.