Implemented more king moves while extracting a useful utility
Extracted the utility.
Added test for uncovered case.