The king may move to all sides.
More generic approach to move diagonally
Further simplification.
Added blocking method
Occupied squares cannot be moved to by a king
Capture test.
King can capture.