#16: Added the end of the game