Nice idea, but the implementation has flaws. 111111 is acceptable and 11111111 is a strong password according to the code.
Here is an example in C# code how you can improve the strength check:
https://stackoverflow.com/questions/6151576/how-to-check-password-strength