fixed king to pass unit tests