One last hardcoded algorithm needed to be changed
Implemented level capping