Fixed a bug in goal checking that made an empty graph a correct result, cleaned up UI by displaying one 'Goal Reached' alert instead of two.