changed max spots to a variable

Easier for someone looking at the code to understand