Task criteria interface changed, rules fixed.

Task criteria now use IChessTaskCriteriaState instead of Object.