Adding logic to limit number of players