Using patterns and plans in chess