Fix bug where the maximum was not determined properly

Still debug printing statements present
Updated comments
Set extra points to 5 to mimic current implementation