parsing the goals as ints