Changed the upper bound setting to be variable

The upper bound was originally hardcoded to 6, now it depends on the
default value of maxAllowedPlayers