Removes hasGoal variable