renamed variable maxSize to playerMaxSize