How to make it so the game ends when there is 1 player left

search before you post