numPlayers functionality