You can end the game by calling the game -> game over function:
game -> game over
game.gameOver()
game of chance