Update: memory needed to be free inside of main, not get_score()