Fix function valid_king_move