Fix function move_king
Add checkmate tests