Checkmate Patch ver1.52 and findPath fix

-Fixed an issue where checkmate would not correctly determine if king
was in check
-Fixed an issue where findPath would enter an infinite loop