Using Patterns and Plans in Chess