Slight optimizations

Slight improvement in win checking (5% speed), also can handle any win
scenario now.  Still having problems with more optimization.  Checking
certain solutions doesn't return answer after many minutes .. hard to
confirm whether the problem is logic flaw or just slow.