implements isGoal
implements toString and equals