Added more methods in Goal class for determining a goal and whether that goal is valid or not