program ends when any player wins