Added calcMaxScore