How to make a maximum player amount?

then use a checker so you can end the game if there are more people