Update Board and checkmate function

Prevents error in checkmate function where cannot call endanger king on Array.