Fixed issue with identifying valid King moves that was causing false checkmate
Added logging