Add patterns. use last move to check if the position is match with the patterns or not.
Add patterns.
Merge branch 'implement_patterns' into develop