Update thang.coffee

add getGoalState