fix issue on random boards when white king is not present