End the game on checkmate.

Create an endGame function from the unexpected quit code.
Also, Rename blackPlayerSetup to playerSetup.